package fatboy.hypeerweb;

import junit.framework.Assert;


/**
 * Implementation of the NodePointer
 * 
 * @author James
 *
 */
class EdgePointer extends NodePointer{
	

	public EdgePointer(Node newNode){
		super(newNode);
		super.setTypeOfNode(NodeType.SURFACE_NODE);
	}
	
	public int compareTo(NodePointer o){

		return -o.getNode().compareTo( getNode());

	}

	@Override
	public boolean equals(Object o) {
		Assert.assertTrue(o instanceof NodePointer);
		return getNode().equals( ((NodePointer)o).getNode() );
	}
	@Override
	public int hashCode() {
		return getNode().hashCode();
	}
/*	@Override
	public NodeType getType() {
		return typeOfNode;
	}
*/
}
